﻿using System;
using System.Collections.Generic;

namespace XBD.MyCMSPro
{
    public partial class Program
    {
        static void Main(string[] args)
        {
            //初始化用户系统
            User user = new User();
            //初始化菜单系统
            Menu menu = new Menu();
            //初始化控制系统
            CMSController cms = new CMSController();
            Console.WriteLine("==================客户管理系统====================");
            Console.WriteLine("请登录");
            cms.Start(user,menu);
            Console.Read();
        }

        static string CmdReder(string instruction)
        {
            Console.Write(instruction);
            string cmd = Console.ReadLine();
            return cmd;
        }

        public class CMSController
        {
            public void Start(User user,Menu menu)
            {
                do
                {
                    user.Login();

                } while (!user.isUserlogin);

                //菜单显示
                menu.ShowMenu();
               
            }
        
        }

    }
}
